package org.putrpctorest.service.impl.spring;

import org.putrpctorest.resource.Method;
import org.springframework.beans.factory.FactoryBean;

public class MethodFactoryBean implements FactoryBean<Method> {
	
	private Method method;

	public MethodFactoryBean(Method method) {
		this.method = method;
	}
	
	@Override
	public Method getObject() throws Exception {
		return method;
	}

	@Override
	public Class<?> getObjectType() {
		return Method.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}
	
}
